//
//  YTitleShowView.swift
//  YDemoDelegate
//
//  Created by bruce yao on 2019/7/17.
//  Copyright © 2019 bruce yao. All rights reserved.
//

import UIKit

class YTitleShowView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        print(NSStringFromClass(self.classForCoder))
        print(NSStringFromClass(super.classForCoder))
        addSubview(titleLabel)
        titleLabel.frame = CGRect.init(x: 0, y: 0, width: 200, height: 20)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    fileprivate lazy var titleLabel: UILabel = {
        let label = UILabel.init()
        label.font = UIFont.systemFont(ofSize: 15)
        label.textAlignment = .center
        return label
    }()

}

protocol YTitleShowViewDelegate {
    func showTitle() -> String?
}
